package com.winbomb.simulife.impl.operations;

import com.winbomb.simulife.World;
import com.winbomb.simulife.base.IChoice;
import com.winbomb.simulife.game.screens.LeaveJobScreen;
import com.winbomb.simulife.impl.BaseOperation;
import com.winbomb.simulife.impl.choices.CancelChoice;
import com.winbomb.simulife.impl.choices.ChangeScreenChoice;

/**
 * 辞去工作
 * 
 * @author winbomb
 * 
 */
public class LeaveJobOpt extends BaseOperation {

	public LeaveJobOpt(World world) {
		super(world);
	}

	@Override
	public IChoice[] getChoices() {
		IChoice[] choices = new IChoice[2];
		choices[0] = new ChangeScreenChoice("离职", LeaveJobScreen.class);
		choices[1] = new CancelChoice("取消");

		return choices;
	}

	@Override
	public String getDescription() {
		return "离职";
	}

	@Override
	public boolean isEnable() {
		return master.getJob() != null;
	}

}
